class UnitConverter
  def self.convert(number, unit)
    case unit
    when "celcius"
      (number.to_i - 32) * 5/9
    when "fahrenheit"
      number.to_i * 9/5 + 32
    when "kilometer"
      number.to_i * 1.6
    when "mile"
      number.to_i / 1.6
    when "kilogram"
      number.to_i * 0.45
    when "pound"
      number.to_i / 0.45
    end
  end
end